<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Functions  Reference</title>
    <link rel="stylesheet" type="text/css" href="css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="css/highlight.css" />
    <meta charset="utf-8">
    <script src="js/jquery.min.js" defer></script>
    <script src="js/jazzy.js" defer></script>
    
    <script src="js/lunr.min.js" defer></script>
    <script src="js/typeahead.jquery.js" defer></script>
    <script src="js/jazzy.search.js" defer></script>
  </head>
  <body>

    <a name="//apple_ref/swift/Section/Functions" class="dashAnchor"></a>

    <a title="Functions  Reference"></a>

    <header class="header">
      <p class="header-col header-col--primary">
        <a class="header-link" href="index.html">
          gir2swift 6.0.0 Docs
        </a>
         (98% documented)
      </p>
    
      <p class="header-col--secondary">
        <form role="search" action="search.json">
          <input type="text" placeholder="Search documentation" data-typeahead>
        </form>
      </p>
    
        <p class="header-col header-col--secondary">
          <a class="header-link" href="https://github.com/rhx/gir2swift">
            <img class="header-icon" src="img/gh.png"/>
            View on GitHub
          </a>
        </p>
    
        <p class="header-col header-col--secondary">
          <a class="header-link" href="dash-feed://http%3A%2F%2Frhx%2Egithub%2Eio%2Fgir2swift%2Fdocsets%2Fgir2swift%2Exml">
            <img class="header-icon" src="img/dash.png"/>
            Install in Dash
          </a>
        </p>
    </header>

    <p class="breadcrumbs">
      <a class="breadcrumb" href="index.html">gir2swift Reference</a>
      <img class="carat" src="img/carat.png" />
      Functions  Reference
    </p>

    <div class="content-wrapper">
      <nav class="navigation">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR.html">GIR</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Thing.html">– Thing</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Datatype.html">– Datatype</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/CType.html">– CType</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Alias.html">– Alias</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Constant.html">– Constant</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Enumeration.html">– Enumeration</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Bitfield.html">– Bitfield</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Record.html">– Record</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Class.html">– Class</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Interface.html">– Interface</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Method.html">– Method</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Function.html">– Function</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Callback.html">– Callback</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Signal.html">– Signal</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Property.html">– Property</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Classes/GIR/Argument.html">– Argument</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Extensions/BidirectionalCollection.html">BidirectionalCollection</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Extensions/Collection.html">Collection</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Extensions/Sequence.html">Sequence</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Extensions/String.html">String</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Extensions/String.html">String</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Extensions/String/UTF8View.html">– UTF8View</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Extensions/XMLElement.html">XMLElement</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift1loiySbAA3GIRC5ThingC_AFtF">&lt;(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift2eeoiySbAA3GIRC5ThingC_AFtF">==(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift8callCode__3ptrSSAA3GIRC6MethodCcSS_AE6RecordCSgSStF">callCode(_:_:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift10callSetter__3ptrSSAA3GIRC6MethodCcSS_AE6RecordCSgSStF">callSetter(_:_:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift7codeFor8argumentSSAA3GIRC8ArgumentC_tF">codeFor(argument:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift7codeFor8argument6prefixSSAA3GIRC8ArgumentC_SStF">codeFor(argument:prefix:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift11commentCode_11indentationSSAA3GIRC5ThingC_SStF">commentCode(_:indentation:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift20computedPropertyCode_6record17publicDesignation3ptrSSAA16GetterSetterPairVcSS_AA3GIRC6RecordCS2StF">computedPropertyCode(_:record:publicDesignation:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift16constructorParam_6prefixSSAA3GIRC6MethodC_SSSgtF">constructorParam(_:prefix:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift17constructorPrefixySSSgAA3GIRC6MethodCF">constructorPrefix(_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift26convenienceConstructorCode_11indentation0B017publicDesignation7factory11convertNameSSAA3GIRC6MethodCcAI6RecordCcSS_S3SSbS2SctF">convenienceConstructorCode(_:indentation:convenience:publicDesignation:factory:convertName:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift31convertSetterArgumentToSwiftFor_3ptrSSAA3GIRC0D0CcAE6RecordCSg_SStF">convertSetterArgumentToSwiftFor(_:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift14deprecatedCode_11indentationSSSgAA3GIRC5ThingC_SStF">deprecatedCode(_:indentation:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift12functionCode_11indentation18initialIndentationSSAA3GIRC8FunctionC_S2StF">functionCode(_:indentation:initialIndentation:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift7get_optySJ_SSSgtSgSSF">get_opt(_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift17getterSetterPairs3forSayAA06GetterC4PairVGSayAA3GIRC6MethodCG_tF">getterSetterPairs(for:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift15gtkDoc2SwiftDoc_10linePrefixS2S_SStF">gtkDoc2SwiftDoc(_:linePrefix:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift10methodCode_18initialIndentation6record17publicDesignation11convertName3ptrSSAA3GIRC6MethodCcSS_SSSgAI6RecordCSgS3ScSStF">methodCode(_:initialIndentation:record:publicDesignation:convertName:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift15recordClassCode_6parent11indentation3ptrSSAA3GIRC6RecordC_S3StF">recordClassCode(_:parent:indentation:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift18recordProtocolCode_6parent11indentation3ptrSSAA3GIRC6RecordC_S3StF">recordProtocolCode(_:parent:indentation:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift27recordProtocolExtensionCode__11indentation3ptrSSSayAA3GIRC8FunctionCG_AF6RecordCS2StF">recordProtocolExtensionCode(_:_:indentation:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift16recordStructCode_11indentation3ptrSSAA3GIRC6RecordC_S2StF">recordStructCode(_:indentation:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift10returnCode__3ptrSSAA3GIRC6MethodCcSS_SS8typeName_AE6RecordC6recordSb13isConstructorSb0K11ConveniencetSgSStF">returnCode(_:_:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift21returnDeclarationCodeySSAA3GIRC6MethodCcSS8typeName_AD6RecordC6recordSb13isConstructortSgF">returnDeclarationCode(_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift14returnTypeCodeySSSgAA3GIRC6MethodCcSS8typeName_AE6RecordC6recordSb13isConstructortSgF">returnTypeCode(_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift14signalNameCode11indentation07convertC0SSAA3GIRC5CTypeCcSS_S2SctF">signalNameCode(indentation:convertName:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift14signalNameCode11indentation8prefixes07convertC0SSAA3GIRC5CTypeCcSS_SS_SStS2SctF">signalNameCode(indentation:prefixes:convertName:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift22swiftCallbackAliasCode8callbackSSAA3GIRC0C0C_tF">swiftCallbackAliasCode(callback:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift9swiftCodeySSAA3GIRC11EnumerationCF">swiftCode(_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift9swiftCodeySSAA3GIRC6RecordCcSScSayAD8FunctionCGF">swiftCode(_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift9swiftCodeySSAA3GIRC8FunctionCF">swiftCode(_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift9swiftCode__11indentationSSAA3GIRC5ThingC_S2StF">swiftCode(_:_:indentation:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift9swiftCode5aliasSSAA3GIRC5AliasC_tF">swiftCode(alias:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift9swiftCode8constantSSAA3GIRC8ConstantC_tF">swiftCode(constant:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift7toSwift_3ptrSSAA3GIRC8ArgumentC_SStF">toSwift(_:ptr:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift9typeAliasySSAA3GIRC11EnumerationCF">typeAlias(_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift9valueCodeySSAA3GIRC8ConstantCcSSF">valueCode(_:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift9with_mmap_10protection5flags7processySS_s5Int32VAGySRyxGXEtlF">with_mmap(_:protection:flags:process:)</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Functions.html#/s:12libgir2swift9with_mmap_10protection5flags7processySS_s5Int32VAGySv_SitXEtF">with_mmap(_:protection:flags:process:)</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="Structs.html#/s:12libgir2swift16GetterSetterPairV">GetterSetterPair</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">

        <section class="section">
          <div class="section-content">
            <h1>Functions</h1>
            <p>The following functions are available globally.</p>

          </div>
        </section>

        <section class="section">
          <div class="section-content">
            <div class="task-group">
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift7get_optySJ_SSSgtSgSSF"></a>
                    <a name="//apple_ref/swift/Function/get_opt(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift7get_optySJ_SSSgtSgSSF">get_opt(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Wrapper for POSIX <code>getopt()</code> to return a Swift tuple.
Returns <code>nil</code> if the <code>getopt()</code> returned -1,
otherwise returns a tuple of the option character
with an optional argument</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">get_opt</span><span class="p">(</span><span class="n">_</span> <span class="nv">options</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt">Character</span><span class="p">,</span> <span class="kt">String</span><span class="p">?)?</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/getopt.swift#L20-L27">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift17getterSetterPairs3forSayAA06GetterC4PairVGSayAA3GIRC6MethodCG_tF"></a>
                    <a name="//apple_ref/swift/Function/getterSetterPairs(for:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift17getterSetterPairs3forSayAA06GetterC4PairVGSayAA3GIRC6MethodCG_tF">getterSetterPairs(for:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>return setter/getter pairs from a list of methods</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">getterSetterPairs</span><span class="p">(</span><span class="k">for</span> <span class="nv">allMethods</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Method</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="p">[</span><span class="kt"><a href="Structs.html#/s:12libgir2swift16GetterSetterPairV">GetterSetterPair</a></span><span class="p">]</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L248-L274">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift11commentCode_11indentationSSAA3GIRC5ThingC_SStF"></a>
                    <a name="//apple_ref/swift/Function/commentCode(_:indentation:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift11commentCode_11indentationSSAA3GIRC5ThingC_SStF">commentCode(_:indentation:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>SwiftDoc representation of comments</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">commentCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">thing</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Thing</span><span class="p">,</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">""</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L303-L308">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift14deprecatedCode_11indentationSSSgAA3GIRC5ThingC_SStF"></a>
                    <a name="//apple_ref/swift/Function/deprecatedCode(_:indentation:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift14deprecatedCode_11indentationSSSgAA3GIRC5ThingC_SStF">deprecatedCode(_:indentation:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift representation of deprecation</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">deprecatedCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">thing</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Thing</span><span class="p">,</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L311-L318">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift9swiftCode__11indentationSSAA3GIRC5ThingC_S2StF"></a>
                    <a name="//apple_ref/swift/Function/swiftCode(_:_:indentation:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift9swiftCode__11indentationSSAA3GIRC5ThingC_S2StF">swiftCode(_:_:indentation:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code representation with code following the comments</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">swiftCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">thing</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Thing</span><span class="p">,</span> <span class="n">_</span> <span class="nv">postfix</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">""</span><span class="p">,</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">""</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L321-L330">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift9swiftCode5aliasSSAA3GIRC5AliasC_tF"></a>
                    <a name="//apple_ref/swift/Function/swiftCode(alias:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift9swiftCode5aliasSSAA3GIRC5AliasC_tF">swiftCode(alias:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code representation of a type alias</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">swiftCode</span><span class="p">(</span><span class="nv">alias</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Alias</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L333-L335">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift22swiftCallbackAliasCode8callbackSSAA3GIRC0C0C_tF"></a>
                    <a name="//apple_ref/swift/Function/swiftCallbackAliasCode(callback:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift22swiftCallbackAliasCode8callbackSSAA3GIRC0C0C_tF">swiftCallbackAliasCode(callback:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code representation of a callback as a type alias</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">swiftCallbackAliasCode</span><span class="p">(</span><span class="nv">callback</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Callback</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L338-L340">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift9swiftCode8constantSSAA3GIRC8ConstantC_tF"></a>
                    <a name="//apple_ref/swift/Function/swiftCode(constant:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift9swiftCode8constantSSAA3GIRC8ConstantC_tF">swiftCode(constant:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code representation of a constant</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">swiftCode</span><span class="p">(</span><span class="nv">constant</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Constant</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L343-L350">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift9typeAliasySSAA3GIRC11EnumerationCF"></a>
                    <a name="//apple_ref/swift/Function/typeAlias(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift9typeAliasySSAA3GIRC11EnumerationCF">typeAlias(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code type alias representation of an enum</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">typeAlias</span><span class="p">(</span><span class="n">_</span> <span class="nv">e</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Enumeration</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L362-L364">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift9swiftCodeySSAA3GIRC11EnumerationCF"></a>
                    <a name="//apple_ref/swift/Function/swiftCode(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift9swiftCodeySSAA3GIRC11EnumerationCF">swiftCode(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code representation of an enum</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">swiftCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">e</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Enumeration</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L367-L376">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift9valueCodeySSAA3GIRC8ConstantCcSSF"></a>
                    <a name="//apple_ref/swift/Function/valueCode(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift9valueCodeySSAA3GIRC8ConstantCcSSF">valueCode(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code representation of an enum value</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">valueCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Enumeration</span><span class="o">.</span><span class="kt">Member</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L379-L383">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift18recordProtocolCode_6parent11indentation3ptrSSAA3GIRC6RecordC_S3StF"></a>
                    <a name="//apple_ref/swift/Function/recordProtocolCode(_:parent:indentation:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift18recordProtocolCode_6parent11indentation3ptrSSAA3GIRC6RecordC_S3StF">recordProtocolCode(_:parent:indentation:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift protocol representation of a record/class as a wrapper of a pointer</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">recordProtocolCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">e</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">,</span> <span class="nv">parent</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"    "</span><span class="p">,</span> <span class="nv">ptr</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L387-L404">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift27recordProtocolExtensionCode__11indentation3ptrSSSayAA3GIRC8FunctionCG_AF6RecordCS2StF"></a>
                    <a name="//apple_ref/swift/Function/recordProtocolExtensionCode(_:_:indentation:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift27recordProtocolExtensionCode__11indentation3ptrSSSayAA3GIRC8FunctionCG_AF6RecordCS2StF">recordProtocolExtensionCode(_:_:indentation:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Default implementation for record methods as protocol extension</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">recordProtocolExtensionCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">globalFunctions</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Function</span><span class="p">],</span> <span class="n">_</span> <span class="nv">e</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">,</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"    "</span><span class="p">,</span> <span class="n">ptr</span> <span class="nv">ptrName</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L408-L430">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift12functionCode_11indentation18initialIndentationSSAA3GIRC8FunctionC_S2StF"></a>
                    <a name="//apple_ref/swift/Function/functionCode(_:indentation:initialIndentation:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift12functionCode_11indentation18initialIndentationSSAA3GIRC8FunctionC_S2StF">functionCode(_:indentation:initialIndentation:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Default implementation for functions</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">functionCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">f</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Function</span><span class="p">,</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"    "</span><span class="p">,</span> <span class="n">initialIndentation</span> <span class="nv">i</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">""</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L434-L438">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift10methodCode_18initialIndentation6record17publicDesignation11convertName3ptrSSAA3GIRC6MethodCcSS_SSSgAI6RecordCSgS3ScSStF"></a>
                    <a name="//apple_ref/swift/Function/methodCode(_:initialIndentation:record:publicDesignation:convertName:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift10methodCode_18initialIndentation6record17publicDesignation11convertName3ptrSSAA3GIRC6MethodCcSS_SSSgAI6RecordCSgS3ScSStF">methodCode(_:initialIndentation:record:publicDesignation:convertName:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for methods (with a given indentation)</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">methodCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">initialIndentation</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">record</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">publicDesignation</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"public "</span><span class="p">,</span> <span class="nv">convertName</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="o">=</span> <span class="p">{</span> <span class="nv">$0</span><span class="o">.</span><span class="n">camelCase</span> <span class="p">},</span> <span class="n">ptr</span> <span class="nv">ptrName</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Method</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L442-L482">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift20computedPropertyCode_6record17publicDesignation3ptrSSAA16GetterSetterPairVcSS_AA3GIRC6RecordCS2StF"></a>
                    <a name="//apple_ref/swift/Function/computedPropertyCode(_:record:publicDesignation:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift20computedPropertyCode_6record17publicDesignation3ptrSSAA16GetterSetterPairVcSS_AA3GIRC6RecordCS2StF">computedPropertyCode(_:record:publicDesignation:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for computed properties</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">computedPropertyCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">record</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">,</span> <span class="nv">publicDesignation</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"public "</span><span class="p">,</span> <span class="n">ptr</span> <span class="nv">ptrName</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Structs.html#/s:12libgir2swift16GetterSetterPairV">GetterSetterPair</a></span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L486-L532">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift26convenienceConstructorCode_11indentation0B017publicDesignation7factory11convertNameSSAA3GIRC6MethodCcAI6RecordCcSS_S3SSbS2SctF"></a>
                    <a name="//apple_ref/swift/Function/convenienceConstructorCode(_:indentation:convenience:publicDesignation:factory:convertName:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift26convenienceConstructorCode_11indentation0B017publicDesignation7factory11convertNameSSAA3GIRC6MethodCcAI6RecordCcSS_S3SSbS2SctF">convenienceConstructorCode(_:indentation:convenience:publicDesignation:factory:convertName:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for convenience constructors</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">convenienceConstructorCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">typeName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">convenience</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">""</span><span class="p">,</span> <span class="nv">publicDesignation</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"public "</span><span class="p">,</span> <span class="nv">factory</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span> <span class="nv">convertName</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="o">=</span> <span class="p">{</span> <span class="nv">$0</span><span class="o">.</span><span class="n">camelCase</span> <span class="p">})</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Method</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L538-L589">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift14returnTypeCodeySSSgAA3GIRC6MethodCcSS8typeName_AE6RecordC6recordSb13isConstructortSgF"></a>
                    <a name="//apple_ref/swift/Function/returnTypeCode(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift14returnTypeCodeySSSgAA3GIRC6MethodCcSS8typeName_AE6RecordC6recordSb13isConstructortSgF">returnTypeCode(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Return the return type of a method,</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">returnTypeCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">tr</span><span class="p">:</span> <span class="p">(</span><span class="nv">typeName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">record</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">,</span> <span class="nv">isConstructor</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Method</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L593-L606">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift21returnDeclarationCodeySSAA3GIRC6MethodCcSS8typeName_AD6RecordC6recordSb13isConstructortSgF"></a>
                    <a name="//apple_ref/swift/Function/returnDeclarationCode(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift21returnDeclarationCodeySSAA3GIRC6MethodCcSS8typeName_AD6RecordC6recordSb13isConstructortSgF">returnDeclarationCode(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Return code declaration for functions/methods/convenience constructors</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">returnDeclarationCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">tr</span><span class="p">:</span> <span class="p">(</span><span class="nv">typeName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">record</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">,</span> <span class="nv">isConstructor</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Method</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L611-L617">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift10returnCode__3ptrSSAA3GIRC6MethodCcSS_SS8typeName_AE6RecordC6recordSb13isConstructorSb0K11ConveniencetSgSStF"></a>
                    <a name="//apple_ref/swift/Function/returnCode(_:_:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift10returnCode__3ptrSSAA3GIRC6MethodCcSS_SS8typeName_AE6RecordC6recordSb13isConstructorSb0K11ConveniencetSgSStF">returnCode(_:_:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Return code for functions/methods/convenience constructors</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">returnCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="n">_</span> <span class="nv">tr</span><span class="p">:</span> <span class="p">(</span><span class="nv">typeName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">record</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">,</span> <span class="nv">isConstructor</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">,</span> <span class="nv">isConvenience</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">ptr</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Method</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L621-L635">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift8callCode__3ptrSSAA3GIRC6MethodCcSS_AE6RecordCSgSStF"></a>
                    <a name="//apple_ref/swift/Function/callCode(_:_:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift8callCode__3ptrSSAA3GIRC6MethodCcSS_AE6RecordCSgSStF">callCode(_:_:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for calling the underlying function and assigning the raw return value</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">callCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="n">_</span> <span class="nv">record</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">ptr</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Method</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L639-L663">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift10callSetter__3ptrSSAA3GIRC6MethodCcSS_AE6RecordCSgSStF"></a>
                    <a name="//apple_ref/swift/Function/callSetter(_:_:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift10callSetter__3ptrSSAA3GIRC6MethodCcSS_AE6RecordCSgSStF">callSetter(_:_:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for calling the underlying setter function and assigning the raw return value</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">callSetter</span><span class="p">(</span><span class="n">_</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="n">_</span> <span class="nv">record</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="n">ptr</span> <span class="nv">ptrName</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Method</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L667-L675">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift16constructorParam_6prefixSSAA3GIRC6MethodC_SSSgtF"></a>
                    <a name="//apple_ref/swift/Function/constructorParam(_:prefix:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift16constructorParam_6prefixSSAA3GIRC6MethodC_SSSgtF">constructorParam(_:prefix:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for the parameters of a constructor</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">constructorParam</span><span class="p">(</span><span class="n">_</span> <span class="nv">method</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Method</span><span class="p">,</span> <span class="nv">prefix</span><span class="p">:</span> <span class="kt">String</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L680-L690">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift17constructorPrefixySSSgAA3GIRC6MethodCF"></a>
                    <a name="//apple_ref/swift/Function/constructorPrefix(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift17constructorPrefixySSSgAA3GIRC6MethodCF">constructorPrefix(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for constructor first argument prefix extracted from a method name</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">constructorPrefix</span><span class="p">(</span><span class="n">_</span> <span class="nv">method</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Method</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L694-L719">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift7codeFor8argumentSSAA3GIRC8ArgumentC_tF"></a>
                    <a name="//apple_ref/swift/Function/codeFor(argument:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift7codeFor8argumentSSAA3GIRC8ArgumentC_tF">codeFor(argument:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for auto-prefixed arguments</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">codeFor</span><span class="p">(</span><span class="n">argument</span> <span class="nv">a</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Argument</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L723-L728">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift7codeFor8argument6prefixSSAA3GIRC8ArgumentC_SStF"></a>
                    <a name="//apple_ref/swift/Function/codeFor(argument:prefix:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift7codeFor8argument6prefixSSAA3GIRC8ArgumentC_SStF">codeFor(argument:prefix:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for methods</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">codeFor</span><span class="p">(</span><span class="n">argument</span> <span class="nv">a</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Argument</span><span class="p">,</span> <span class="nv">prefix</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L732-L737">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift7toSwift_3ptrSSAA3GIRC8ArgumentC_SStF"></a>
                    <a name="//apple_ref/swift/Function/toSwift(_:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift7toSwift_3ptrSSAA3GIRC8ArgumentC_SStF">toSwift(_:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for passing an argument to a free standing function</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">toSwift</span><span class="p">(</span><span class="n">_</span> <span class="nv">arg</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Argument</span><span class="p">,</span> <span class="nv">ptr</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L741-L745">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift31convertSetterArgumentToSwiftFor_3ptrSSAA3GIRC0D0CcAE6RecordCSg_SStF"></a>
                    <a name="//apple_ref/swift/Function/convertSetterArgumentToSwiftFor(_:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift31convertSetterArgumentToSwiftFor_3ptrSSAA3GIRC0D0CcAE6RecordCSg_SStF">convertSetterArgumentToSwiftFor(_:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for passing a setter to a method of a record / class</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">convertSetterArgumentToSwiftFor</span><span class="p">(</span><span class="n">_</span> <span class="nv">record</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">?,</span> <span class="nv">ptr</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Argument</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L749-L757">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift14signalNameCode11indentation07convertC0SSAA3GIRC5CTypeCcSS_S2SctF"></a>
                    <a name="//apple_ref/swift/Function/signalNameCode(indentation:convertName:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift14signalNameCode11indentation07convertC0SSAA3GIRC5CTypeCcSS_S2SctF">signalNameCode(indentation:convertName:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for signal names without prefixes</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">signalNameCode</span><span class="p">(</span><span class="n">indentation</span> <span class="nv">indent</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">convertName</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="o">=</span> <span class="p">{</span> <span class="nv">$0</span><span class="o">.</span><span class="n">camelSignal</span> <span class="p">})</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">CType</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L761-L763">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift14signalNameCode11indentation8prefixes07convertC0SSAA3GIRC5CTypeCcSS_SS_SStS2SctF"></a>
                    <a name="//apple_ref/swift/Function/signalNameCode(indentation:prefixes:convertName:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift14signalNameCode11indentation8prefixes07convertC0SSAA3GIRC5CTypeCcSS_SS_SStS2SctF">signalNameCode(indentation:prefixes:convertName:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code for signal names with prefixes</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">signalNameCode</span><span class="p">(</span><span class="n">indentation</span> <span class="nv">indent</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">prefixes</span><span class="p">:</span> <span class="p">(</span><span class="kt">String</span><span class="p">,</span> <span class="kt">String</span><span class="p">),</span> <span class="nv">convertName</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span> <span class="o">=</span> <span class="p">{</span> <span class="nv">$0</span><span class="o">.</span><span class="n">camelSignalComponent</span> <span class="p">})</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">CType</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L767-L774">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift16recordStructCode_11indentation3ptrSSAA3GIRC6RecordC_S2StF"></a>
                    <a name="//apple_ref/swift/Function/recordStructCode(_:indentation:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift16recordStructCode_11indentation3ptrSSAA3GIRC6RecordC_S2StF">recordStructCode(_:indentation:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift struct representation of a record/class as a wrapper of a pointer</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">recordStructCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">e</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">,</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"    "</span><span class="p">,</span> <span class="nv">ptr</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L778-L841">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift15recordClassCode_6parent11indentation3ptrSSAA3GIRC6RecordC_S3StF"></a>
                    <a name="//apple_ref/swift/Function/recordClassCode(_:parent:indentation:ptr:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift15recordClassCode_6parent11indentation3ptrSSAA3GIRC6RecordC_S3StF">recordClassCode(_:parent:indentation:ptr:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift struct representation of a record/class as a wrapper of a pointer</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">recordClassCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">e</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">,</span> <span class="nv">parent</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">indentation</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"    "</span><span class="p">,</span> <span class="nv">ptr</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"ptr"</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L845-L995">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift9swiftCodeySSAA3GIRC6RecordCcSScSayAD8FunctionCGF"></a>
                    <a name="//apple_ref/swift/Function/swiftCode(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift9swiftCodeySSAA3GIRC6RecordCcSScSayAD8FunctionCGF">swiftCode(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code representation of a record</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">swiftCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">funcs</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Function</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="p">(</span><span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Record</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L1001-L1014">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift9swiftCodeySSAA3GIRC8FunctionCF"></a>
                    <a name="//apple_ref/swift/Function/swiftCode(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift9swiftCodeySSAA3GIRC8FunctionCF">swiftCode(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Swift code representation of a free standing function</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">swiftCode</span><span class="p">(</span><span class="n">_</span> <span class="nv">f</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Function</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir+swift.swift#L1018-L1021">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift2eeoiySbAA3GIRC5ThingC_AFtF"></a>
                    <a name="//apple_ref/swift/Function/==(_:_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift2eeoiySbAA3GIRC5ThingC_AFtF">==(_:_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Comparator to check whether two <code>Thing</code>s are equal</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="o">==</span> <span class="p">(</span><span class="nv">lhs</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Thing</span><span class="p">,</span> <span class="nv">rhs</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Thing</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>lhs</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p><code>Thing</code> to compare</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>rhs</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p><code>Thing</code> to compare with</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir.swift#L70-L72">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift1loiySbAA3GIRC5ThingC_AFtF"></a>
                    <a name="//apple_ref/swift/Function/&lt;(_:_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift1loiySbAA3GIRC5ThingC_AFtF">&lt;(_:_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Comparator to check the ordering of two <code>Thing</code>s</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="o">&lt;</span> <span class="p">(</span><span class="nv">lhs</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Thing</span><span class="p">,</span> <span class="nv">rhs</span><span class="p">:</span> <span class="kt"><a href="Classes/GIR.html">GIR</a></span><span class="o">.</span><span class="kt">Thing</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>lhs</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>first <code>Thing</code> to compare</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>rhs</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>second <code>Thing</code> to compare</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gir.swift#L78-L80">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift15gtkDoc2SwiftDoc_10linePrefixS2S_SStF"></a>
                    <a name="//apple_ref/swift/Function/gtkDoc2SwiftDoc(_:linePrefix:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift15gtkDoc2SwiftDoc_10linePrefixS2S_SStF">gtkDoc2SwiftDoc(_:linePrefix:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Convert the given String to SwiftDoc</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">gtkDoc2SwiftDoc</span><span class="p">(</span><span class="n">_</span> <span class="nv">gtkDoc</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">linePrefix</span><span class="p">:</span> <span class="kt">String</span> <span class="o">=</span> <span class="s">"/// "</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>gtkDoc</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>String in <code>gtk-doc</code> format</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>linePrefix</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>string to prefix each line with (e.g. indentation and/or <q>///</q>)</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>String in SwiftDoc format</p>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/gtk2swiftdoc.swift#L44-L272">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift9with_mmap_10protection5flags7processySS_s5Int32VAGySv_SitXEtF"></a>
                    <a name="//apple_ref/swift/Function/with_mmap(_:protection:flags:process:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift9with_mmap_10protection5flags7processySS_s5Int32VAGySv_SitXEtF">with_mmap(_:protection:flags:process:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>memory map the given file with the given protection and flags,
then call the <code>process</code> function with the memory address of the
mapped file</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">with_mmap</span><span class="p">(</span><span class="n">_</span> <span class="nv">file</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">protection</span><span class="p">:</span> <span class="kt">Int32</span> <span class="o">=</span> <span class="kt">PROT_READ</span><span class="p">,</span> <span class="nv">flags</span><span class="p">:</span> <span class="kt">Int32</span> <span class="o">=</span> <span class="kt">MAP_PRIVATE</span><span class="p">,</span> <span class="nv">process</span><span class="p">:</span> <span class="p">(</span><span class="kt">UnsafeMutableRawPointer</span><span class="p">,</span> <span class="kt">Int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>file</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Name of the file to <code>open()</code> and <code>mmap()</code></p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>protection</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>memory protection flags to use</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>flags</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>memory mapping flags to use</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>process</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>callback for processing the content of the file while memory mapped</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/mmap.swift#L25-L43">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:12libgir2swift9with_mmap_10protection5flags7processySS_s5Int32VAGySRyxGXEtlF"></a>
                    <a name="//apple_ref/swift/Function/with_mmap(_:protection:flags:process:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:12libgir2swift9with_mmap_10protection5flags7processySS_s5Int32VAGySRyxGXEtlF">with_mmap(_:protection:flags:process:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>memory map the given file to an unsafe buffer pointer
then call the <code>process</code> function with the memory address of the
mapped file</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">with_mmap</span><span class="o">&lt;</span><span class="kt">Element</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">file</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="n">protection</span> <span class="nv">p</span><span class="p">:</span> <span class="kt">Int32</span> <span class="o">=</span> <span class="kt">PROT_READ</span><span class="p">,</span> <span class="n">flags</span> <span class="nv">f</span><span class="p">:</span> <span class="kt">Int32</span> <span class="o">=</span> <span class="kt">MAP_PRIVATE</span><span class="p">,</span> <span class="nv">process</span><span class="p">:</span> <span class="p">(</span><span class="kt">UnsafeBufferPointer</span><span class="o">&lt;</span><span class="kt">Element</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>file</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Name of the file to <code>open()</code> and <code>mmap()</code> to memory pointing to the given <code>Element</code> type</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>p</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>memory protection flags to use</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>f</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>memory mapping flags to use</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>process</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>callback for processing the content of the file while memory mapped and bound to <code>Element</code></p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/rhx/gir2swift/tree/master/Sources/libgir2swift/mmap.swift#L55-L59">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </div>
        </section>

      </article>
    </div>
    <section class="footer">
      <p>&copy; 2019 <a class="link" href="https://www.ict.griffith.edu.au/~rhexel/" target="_blank" rel="external">Ren&eacute;&nbsp;Hexel</a>. All rights reserved. (Last updated: 2019-12-12)</p>
      <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.11.2</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
    </section>
  </body>
</div>
</html>
